package com.example.sfm.service;

import com.example.sfm.pojo.dto.GradeStatisticsDto;
import com.example.sfm.pojo.dto.GradesDto;
import com.example.sfm.pojo.dto.GradesQueryDto;
import com.example.sfm.pojo.entity.Grades;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.sfm.pojo.vo.GradeStatisticsVo;
import com.example.sfm.result.PageResult;
import jakarta.servlet.http.HttpServletResponse;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author sfm
 * @since 2025-03-07
 */
public interface IGradesService extends IService<Grades> {

    PageResult<?> listGrades(GradesQueryDto dto);

    void updateGrade(Integer id, GradesDto dto);

    void deleteGrades(List<Integer> ids);

    void importFromExcel(MultipartFile file);

    void exportExcel(HttpServletResponse response, GradesQueryDto dto);

    void createGrade(GradesDto dto);

    GradeStatisticsVo getGradeStatistics(GradeStatisticsDto dto);
}
